package com.quickd.service.dto.wms;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.quickd.core.annotation.DictAno;
import com.quickd.core.dto.BaseDto;
import com.quickd.core.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 供应商客户
 *
 * @author quickd quickd@dacanginfo.com
 * @since 2019-10-11
 */
@Data
@ApiModel(value = "供应商客户")
public class CustomerDTO extends BaseDto {

    @ApiModelProperty(value = "客户编号")
    @Excel(name = "客户编号")
    private String code;

    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称 不能为空", groups = DefaultGroup.class)
    @Excel(name = "名称")
    private String name;

    @ApiModelProperty(value = "地址")
    @Excel(name = "地址")
    private String address;

    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话")
    private String contactNumber;

    @ApiModelProperty(value = "联系人")
    @Excel(name = "联系人")
    private String contactUser;

    @ApiModelProperty(value = "法人代表")
    @Excel(name = "法人代表")
    private String legalPersonName;

    @ApiModelProperty(value = "法人代表电话")
    @Excel(name = "法人代表电话")
    private String legalPersonMobile;

    @ApiModelProperty(value = "邮箱")
    @Excel(name = "邮箱")
    private String email;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;

    @ApiModelProperty(value = "类型（0供应商1客户）")
    @DictAno(dicCode = "customer_type")
    @Excel(name = "类型（0供应商1客户）")
    private Integer type;
}